import request from '@/utils/request'


export function getPersons(params) {
  return request({
    url: '/web/business/personInfoD/page',
    method: 'get',
    params: params
  })
}

export function getPersonsById(id) {
  return request({
    url: '/web/business/personInfoD/'+id,
    method: 'get'
  })
}

export function addPerson(param) {
  return request({
    url: '/web/business/personInfoD',
    method: 'post',
    data: param
  })
}

export async function updatePerson(param) {
  return request({
    url: '/web/business/personInfoD',
    method: 'put',
    data: param
  })
}

export function deletePerson(id) {
  return request({
    url: '/web/business/personInfoD/'+id,
    method: 'delete'
  })
}

export function readIdCardInfo() {
  return request({
    url: '/web/business/personInfoD/readIdCardInfo',
    method: 'get'
  })
}

